home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
movefile.zip
/
MOVEFILE.DOC
< prev
next >
Wrap
Text File
|
1993-01-04
|
9KB
|
556 lines
MOVEFILE - A File Move Utility
Version 1.20 PUBLIC DOMAIN
09-21-1987
Jim Drash
CompuServe ID [76607,70]
PUBLIC DOMAIN
Original Author: Jim Drash
MOVEFILE - A File Move Utility
Contents
1.0 Introduction ....................................... 1
1.1 Technical Information .............................. 1
2.0 Distribution ....................................... 2
3.0 Installation of MOVEFILE ........................... 3
4.0 Using MOVEFILE ..................................... 4
4.1 Examples of MOVEFILE use ........................... 4
5.0 General Notes ...................................... 6
6.0 Requests and Comments .............................. 7
Appendix A: Summary of changes ......................... 8
- ii -
MOVEFILE - A File Move Utility
1.0 INTRODUCTION
MOVEFILE is a utility that allows files to be moved between
subdirectories. This program is designed to ease hard
directory use.
1.1 TECHNICAL INFORMATION
1. Hardware - IBM/PC/XT/AT and compatibles
2. Operating System - PC/MS DOS 2.00 or higher
3. Memory Usage - 10K
4. Limitations - will only move files not
subdirectories
MOVEFILE was written using Borland International's Turbo C
Version 1.00. It uses no floating point routines.
Note: This program, source code, and documentation are
PUBLIC DOMAIN.
- 1 -
MOVEFILE - A File Move Utility
2.0 DISTRIBUTION
* MOVEFILE.ARC - contains the following:
1. MOVEFILE.COM - MOVEFILE Program
2. MOVEFILE.DOC - MOVEFILE Documentation
3. MOVEFILE.REV - MOVEFILE Revistion History
4. MOVEFILE.C - MOVEFILE Source (Turbo C)
5. MOVEFILE.MAK - MOVEFILE Make File (Turbo C Make)
6. EXPARG.C - EXPARG Source (PUBLIC DOMAIN)
7. EXPARG.H - EXPARG Include File (PUBLIC
DOMAIN)
- 2 -
MOVEFILE - A File Move Utility
3.0 INSTALLATION OF MOVEFILE
1. Make a backup copy of MOVEFILE.ARC
2. Use one of the un-ARChiving utilities (ARCE, PKXARC,
etc.) to extract the files.
3. Copy MOVEFILE.COM to a directory in your PATH.
4. Read the DOC. This manual contains no printer specific
control characters other than carriage returns, line
feeds, and form feeds. It should print on most
printers.
5. Use and enjoy MOVEFILE
- 3 -
MOVEFILE - A File Move Utility
4.0 USING MOVEFILE
MOVEFILE is run from the DOS command line as follows:
movefile source target
where: source - [d:][path]filename.ext
(wildcards: "*" and "?" are supported)
target - [d:]path
The source is a DOS file specification for the file(s) to
be moved. The target is a directory that the files will be
moved to.
Note: Wildcards are supported so that multiple files can be
moved in one MOVEFILE invocation.
4.1 EXAMPLES OF MOVEFILE USE
MOVEFILE with no arguments
C:\>movefile
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
Usage: movefile source target
where source - file to be moved (wildcards allowed)
target - destination directory
MOVEFILE help
C:\>movefile ?
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
Usage: movefile source target
where source - file to be moved (wildcards allowed)
target - destination directory
Move a file to a directory
C:\>movefile file.txt \zz
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
FILE.TXT moved to \ZZ
- 4 -
MOVEFILE - A File Move Utility
Move a file from another directory to this one
C:\>movefile \zz\file.txt .
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
\ZZ\FILE.TXT moved to .\
Move a file from another directory to the directory above this one
C:\FUBAR>movefile \zz\file.txt ..
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
\ZZ\FILE.TXT moved to ..\
Move all files on \zz directory that match "file.*" to this one
C:\>movefile \zz\file.* .
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
\ZZ\FILE.TXT moved to .\
\ZZ\FILE.TXT moved to .\
\ZZ\FILE.TXT moved to .\
\ZZ\FILE.BAT moved to .\
\ZZ\FILE.EXE moved to .\
Move all files on \zz directory that match "file.*" to \test directory
C:\>movefile \zz\file.* \test
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
\ZZ\FILE.TXT moved to \test
\ZZ\FILE.TXT moved to \test
\ZZ\FILE.TXT moved to \test
\ZZ\FILE.BAT moved to \test
\ZZ\FILE.EXE moved to \test
Move a file from the c: drive to the a: drive
C:\>movefile file.txt a:
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
C:FILE.TXT moved to A:
Move multiple files
C:\>movefile fu.bar file.* test*.bas \zz
- 5 -
MOVEFILE - A File Move Utility
5.0 GENERAL NOTES
If the source and target drives are the same, then MOVEFILE
uses the DOS rename function to accomplish the move. If
the source and target drives differ the MOVEFILE copies the
source to the target and deletes the source.
Move a file that does not exist
C:\>movefile fu.bar \zz
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
movefile: No such file or directory
unable to move: fu.bar
Move a file to a directory that does not exist
C:\>movefile file.txt \zz1
movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
movefile: No such file or directory
unable to move: FILE.TXT
- 6 -
MOVEFILE - A File Move Utility
6.0 REQUESTS AND COMMENTS
All requests and comments should be made in writing,
addressed to:
Jim Drash
2256 Beechmont Ave.
Cincinnati, OH 45230
My CompuServe ID is 76607,70
I welcome suggestions, "bug" reports and constructive
comments.
- 7 -
MOVEFILE - A File Move Utility
APPENDIX A: SUMMARY OF CHANGES
1. Version 1.20
a. PUBLIC DOMAIN
b. Supports multiple source file specifications in one
invocation
c. Added Ctrl-Break (abort) processing
d. DOS version check
e. Squashed "bug" with cross-drive move file time
stamps
2. Version 1.10
a. Added support to move between drives
3. Version 1.00
a. New Program
- 8 -